package com.an;

public class StringTest {
    public static void main(String[] args) {
//        String poem="床前明月光,疑是地上霜,举头望明月,低头思故乡";
//        String [] splist=poem.split(",");
//        //
//        System.out.println(poem);
//        System.out.println("===============");
//        for (int i = 0; i <splist.length ; i++) {
//            System.out.println(splist[i]);
//        }

        String str ="   hifsdik   hello world    ";
        char ch=str.charAt(3);
        System.out.println(ch);
       String str2= str.replace("i","K");
        System.out.print(str);
        System.out.println(str2);
        String str3=str.trim();
        System.out.print(str);
        System.out.print(str3);
        System.out.println(str3);
        String str4=str.substring(3,14);
        System.out.println(str4);



    }
}
